package com.igeekhome.ccs.biz.impl;

import com.igeekhome.ccs.biz.IDataView;
import com.igeekhome.ccs.entity.Session;
import com.igeekhome.ccs.mapper.DataViewMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DataView implements IDataView {
    @Autowired
    DataViewMapper dataViewMapper;

    @Override
    public int allsession(int groupId, int customerId, String startTime, String endTime) {
        return dataViewMapper.allsession(groupId,customerId,startTime,endTime);
    }

    @Override
    public int allcustomer(int groupId, int customerId, String startTime, String endTime) {
        return dataViewMapper.allcustomer(groupId,customerId,startTime,endTime);
    }

    @Override
    public int allaccess(int groupId, int customerId, String startTime, String endTime) {
        return dataViewMapper.allaccess(groupId,customerId,startTime,endTime);
    }

    @Override
    public int allmessage(int groupId, int customerId, String startTime, String endTime) {
        return dataViewMapper.allmessage(groupId,customerId,startTime,endTime);
    }

    @Override
    public List<Session> getallsession(int groupId, int customerId, String startTime, String endTime) {
        return dataViewMapper.getallsession(groupId,customerId,startTime,endTime);
    }

    @Override
    public List<Integer> getallsessionid(int groupId, int customerId, String startTime, String endTime) {
        return dataViewMapper.getallsessionid(groupId,customerId,startTime,endTime);
    }
}
